package com.dsj{
  import com.dsj.scala.Person
  object Test {
    def main(args:Array[String]): Unit={
    val person=new Person
    println(person.name)
    }

  }
  package object scala{
    var name ="king"

    def sayHIV():Unit={
      println("package object scala sayHI~")
    }
  }

package scala {
  class Person {
    val name: String = "mm"

    def eat(): Unit = {
      println(this.name + " 吃吃吃 ~~~")
    }
  }
}
}